package br.com.fsa.aplication.Model;

import java.io.Serializable;

public class MotoristaVO  implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1841609931164525546L;
	
	private Long motoristaID;
	private String nome;
	private String CNH;
	private boolean disponivel;
	
	public Long getMotoristaID() {
		return motoristaID;
	}
	public void setMotoristaID(Long motoristaID) {
		this.motoristaID = motoristaID;
	}
	public String getNome() {
		return nome;
	}
	public void setNome(String nome) {
		this.nome = nome;
	}
	public String getCNH() {
		return CNH;
	}
	public void setCNH(String cNH) {
		CNH = cNH;
	}
	public boolean getDisponivel() {
		return disponivel;
	}
	public void setDisponivel(boolean disponivel) {
		this.disponivel = disponivel;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((motoristaID == null) ? 0 : motoristaID.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MotoristaVO other = (MotoristaVO) obj;
		if (motoristaID == null) {
			if (other.motoristaID != null)
				return false;
		} else if (!motoristaID.equals(other.motoristaID))
			return false;
		return true;
	}
	
	

}
